Validate the S5’ MAC (MAC of the PSAM for a Transaction) – New Terminals

Command:

Validate the S5’ MAC for new terminals

Notes:

Use of this command requires the optional ESP licence. Error code 67 will be returned if the command is not licensed.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message Header

m A

Will be returned to the Host unchanged

Command Code

2 A

Value “X6”

*KMACS5

32 H

Double length KMACS5 encrypted under LMK pair 20-21 variant 8

S5’

16 H

Signature for verification

Length of DDCEP

1 B

Length of DDCEP field (range 0 to 16)

Record Length

2 B

Record Length

Record Type

1 B

Record Type

IDRECORD

2 B

Record number within batch

RIDPSAM

5 B

The RID of the PSAM creator

IDPSAMCREATOR

4 B

The identifier assigned to the PSAM creator by the RIDPSAM owner

IDPSAM

4 B

Identifier for a PSAM

IDBATCH

2 B

Identifier for a POS Transaction Batch

NTPSAM

4 B

PSAM Transaction Number

MTOTPDA

4 B

Net value of transaction

CURRPDA

3 B

Currency of transaction

IDSCHEME

1 B

Reference number assigned to AIDCEP in AID table

IDISS

4 B

Issuer Identifier

IDCEP

6 B

ID of CEP or IEP application

NTCEP

2 B

CEP card transaction number

S6

8 B

Signature from CEP card

CCPDA

2 B

CEPS completion code

CCPROP

2 B

Proprietary completion code

Slot Balance

4 B

Slot balance at end of transaction

TIPDA

1 B

Transaction indicator

MPDA

4 B

Value of last successful increment

DTHRPDA

5 B

Date & Time stamp for transaction

DEXPCARD

3 B

Card expiration date

ALGKS

1 B

Algorithm to calculate S4 & S5

AMCEP

1 B

Authentication Method

VKPCA, ISS, CEP

1 B

Version number of the issuer CA key

IDREG, ISS

4 B

Issuer region ID

VKPREG, ISS

1 B

Version number of the regional CA key

CSNISS, CEP

3 B

Issuer certificate serial number

LDDCEP

1 B

Length of the DDCEP field

DDCEP

n B

DDCEP response

NUMSEG

1 B

Number of Segments

End Message Delimiter

1 C

Optional. Must be present if a message trailer is present. Value X'19

Message Trailer

n A

Optional. Maximum length 32 characters

RESPONSE MESSAGE

Message Header

m A

Will be returned to the Host unchanged

Response Code

2 A

Value “X7”

Error Code

2 N

00 – No error. S5’ validated successfully

01 – S5’ validation failed.

10 – KMAC parity error

12 – No keys loaded in user storage

13 – LMK error - report to Supervisor

15 – Error in input data

21 – Invalid user storage index

  

End Message Delimiter

1 C

Will only be present if present in the command message. Value X'19

Message Trailer

n A

Will only be present if in the command message. Maximum length 32 characters